# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=nickle
pkgver=2.90
pkgrel=1
pkgdesc="A programming language based prototyping environment with powerful programming and scripting capabilities"
arch=('loong64' 'x86_64')
url="https://nickle.org"
license=('custom')
depends=('readline')
source=("https://nickle.org/release/${pkgname}-${pkgver}.tar.gz")
sha256sums=('fbb3811aa0ac4b31e1702ea643dd3a6a617b2516ad6f9cfab76ec2779618e5a4')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
